]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
runDialog: Set label-actor for entry
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 3 Jun 2025 14:17:17 +0000 (16:17 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 28 Jun 2025 10:22:16 +0000 (12:22 +0200)
The dialog title is currently "invisible" to the screen reader,
so alt+F2 effectively brings up a plain entry with no context.

To address this, set the entry's label-actor to the dialog title,
so we export a proper labelled-by relationship to the screen reader.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3736>
(cherry picked from commit 19952e5a2f487708dabb807f167ebd118f4f5abd)

js/ui/runDialog.js

index 1ce9fe2e23ff12bb5b0236def1fc39c78444c158..9b9c4ddc6793370a2508f84ac0ff8d4b077572d8 100644 (file)
@@ -62,9 +62,11 @@ class RunDialog extends ModalDialog.ModalDialog {
 
         let content = new Dialog.MessageDialogContent({title});
         this.contentLayout.add_child(content);
+        const [labelActor] = content;
 
         let entry = new St.Entry({
             style_class: 'run-dialog-entry',
+            labelActor,
             can_focus: true,
         });
         ShellEntry.addContextMenu(entry);